package top.hcode.hoj.dao.collect;

import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import org.springframework.stereotype.Service;
import top.hcode.hoj.mapper.CollCreatedWorksMapper;
import top.hcode.hoj.pojo.entity.coll.CollCreatedWorks;

/**
 * @author orangej
 * @since 2025-01-21
 */
@Service
public class CollCreatedWorksDao extends ServiceImpl<CollCreatedWorksMapper, CollCreatedWorks> {
    public CollCreatedWorks getByUserIdAndCollId(String uid, String collId) {
        return lambdaQuery().eq(CollCreatedWorks::getUserId, uid).eq(CollCreatedWorks::getCollId, collId).one();
    }
}
